package com.example.swd1.gudong.main.user.systemoption;

import android.app.Activity;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.example.swd1.gudong.R;

public class SystemOptionActivity extends Activity implements View.OnClickListener {
    private ImageView iv_history_back;
    private OptionFragment optionFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_system_option);
        iv_history_back = (ImageView) findViewById(R.id.iv_history_back);
        iv_history_back.setOnClickListener(this);
        FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
        optionFragment = new OptionFragment();
        fragmentTransaction.replace(R.id.fl_option_detail, optionFragment);
        fragmentTransaction.commit();
    }

    @Override
    public void onClick(View v) {
        finish();
    }
}
